package org.team4.dao;

import org.hibernate.SessionFactory;
import org.team4.domain.AttachedFile;

import org.team4.dao.AttachedFileDAO;
import org.team4.dao.GenericDAO;

/**
 * <p>程序名称：       AttachedFileDAO.java</p>
 * <p>程序说明：       附件DAO</p>
 * <p>版权信息：       Copyright 深圳市维远泰克科技有限公司</p>
 * <p>时间：          Jan 20, 2011 3:05:53 PM</p>	
 * 
 * @author：          Marker.King
 * @version：         Ver 0.1
 */
public class AttachedFileDAO extends GenericDAO<AttachedFile> {

	private static final long serialVersionUID = 5009503854192117528L;
	private static AttachedFileDAO instance;
	
	public static AttachedFileDAO getInstance(SessionFactory sessionFactory) {
        if(instance == null) {
            instance =  new AttachedFileDAO(sessionFactory);
        }
        return instance;
    }
	
	private AttachedFileDAO(SessionFactory sessionFactory) {
		super(sessionFactory, AttachedFile.class);
	}

}
